Learning React js: A complete hands-on guide to modern web development with React.js by Claudia Alves

Learning React js: A complete hands-on guide to modern web development with React.js by Claudia Alves

Author:Claudia Alves [Alves, Claudia]
Language: eng
Format: azw3, epub
Published: 2020-08-19T16:00:00+00:00


Chapter III

ReactJS - Validate extensions

Ownership verification is a useful way to force correct use of

Ingredients. This will help during the development to avoid errors and

Future problems, as soon as the app becomes bigger. Also

It makes the code more readable as we can see how each component should be used.

Check the accessories

In this example, we create an application component with all the extensions we need. App.propTypes is used to validate extensions. If some accessories do not use the correct type that we specified, we will receive a warning from the console. After specifying the verification patterns, we will configure App.defaultProps.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.